var app = getApp();
Component({
  //对外声明属性
  properties: {
    //标题
    title: {
      type: String,
      value: '提示'
    },
    //提示内容
    content: {
      type: String,
      value: ''
    },
    //确定按钮显示
    toastConfirm: {
      type: String,
      value: '确定'
    },
    //是否隐藏
    hidden: {
      type: Boolean,
      value: true
    },
    //按钮开放能力
    openType: {
      type: String,
      value: ''
    },
    //按钮触发事件
    bindEvent: {
      type: String,
      value: ''
    }
  },
  //内部属性
  data: {
    windowHeight: app.globalData.systemInfo.windowHeight
  },

  //方法
  methods: {
    //确定
    toastConfirm: function(e) {
      this.triggerEvent('toastConfirm',e);
    },
    //获取用户信息
    getUserInfo:function(e){
      this.triggerEvent('getUserInfo', e);
    },
    //打开用户权限
    openSetting:function(e){
      this.triggerEvent('openSetting', e);
    }

  }

})